package model

import "fmt"

type User struct {
}

func (this *User) Login(name, pass string) error {
	if name == "wdc" && pass == "123" {
		fmt.Println("登录成功")
		return nil
	}

	return fmt.Errorf("用户密码不对")
}

//积分服务
type ScoreSvc struct {
}

func (this *ScoreSvc) Score(name string) error {
	fmt.Printf("给%s 发送积分成功", name)
	return nil
}
